MounRiver Studio

http://mounriver.com/   


5.5 Debug

Select project in project directory Window, if it is not complied, first compile project, then click   in shortcut toolbar to enter debug mode.

Note: please refer to “instructions for use of WCH-Link-V1.1.pdf ” for WCH-Link

5.5.1 Shortcut toolbar

5.5.2 Breakpoint

Double-click the code line in the left side, set breakpoint, double-click again to cancel 
The interface is shown in figure 5.5.2.1.

图5.5.2.1

5.5.3 Variable

Hover the mouse over the variable in the source code will display the detailed information. Or select variable, then right single-click on “add watch expression”. The pop-up interface is shown in figure 5.5.3.1.

图 5.5.3.1

Write the variable name, or directly click “OK”, add the selected variable. The interface is shown in figure 5.5.3.2.

图 5.5.3.2

5.5.4 Peripheral register

The “Peripherals” interface displays a list of peripherals in the bottom left corner of the IDE interface. Ticking peripherals will display the specific register name, address and value. The interfaces are shown in figure 5.5.4.1 and figure 5.5.4.2.

Figure  5.5.4.1
 

Figure  5.5.4.2

 

 

Contents


Copyright  (c)  2021 MounRiver Team All Rights Reserved